<%@ page import="fleet_management.DriverDetails" %>



<div class="fieldcontain ${hasErrors(bean: driverDetailsInstance, field: 'driverName', 'error')} required">
	<label for="driverName">
		<g:message code="driverDetails.driverName.label" default="Name of Driver" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="driverName" required="" value="${driverDetailsInstance?.driverName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: driverDetailsInstance, field: 'permanentResidenceAddress', 'error')} required">
	<label for="permanentResidenceAddress">
		<g:message code="driverDetails.permanentResidenceAddress.label" default="Permanent Residence Address" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="permanentResidenceAddress" required="" value="${driverDetailsInstance?.permanentResidenceAddress}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: driverDetailsInstance, field: 'contactNumber', 'error')} required">
	<label for="contactNumber">
		<g:message code="driverDetails.contactNumber.label" default="Contact Number" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="contactNumber" required="" value="${driverDetailsInstance?.contactNumber}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: driverDetailsInstance, field: 'licenseNumber', 'error')} required">
	<label for="licenseNumber">
		<g:message code="driverDetails.licenseNumber.label" default="License Number" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="licenseNumber" required="" value="${driverDetailsInstance?.licenseNumber}"/>
</div>


<div class="fieldcontain ${hasErrors(bean: driverDetailsInstance, field: 'currentLocation', 'error')} required">
	<label for="currentLocation">
		<g:message code="driverDetails.currentLocation.label" default="Current Location" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="currentLocation" required="" value="${driverDetailsInstance?.currentLocation}"/>
</div>


<div
	class="fieldcontain ${hasErrors(bean: vehicleDescriptionInstance, field: 'dateOfBirth', 'error')} required">
	<label for="dateOfBirth"> <g:message
			code="vehicleDescription.dateOfBirth.label"
			default="Date of Birth" /> <span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dateOfBirth" precision="day"
		value="${vehicleDescriptionInstance?.dateOfBirth}" />
</div>


<div class="fieldcontain ${hasErrors(bean: driverDetailsInstance, field: 'approximateYearOfRetirement', 'error')} required">
	<label for="approximateYearOfRetirement">
		<g:message code="driverDetails.approximateYearOfRetirement.label" default="Approximate Year of Retirement" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="approximateYearOfRetirement" required="" value="${driverDetailsInstance?.approximateYearOfRetirement}"/>
</div>


<div
	class="fieldcontain ${hasErrors(bean: vehicleDescriptionInstance, field: 'dateOfJoinSC', 'error')} required">
	<label for="dateOfJoinSC"> <g:message
			code="vehicleDescription.dateOfJoinSC.label"
			default="Date of Join SC" /> <span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dateOfJoinSC" precision="day"
		value="${vehicleDescriptionInstance?.dateOfJoinSC}" />
</div>


<div class="fieldcontain ${hasErrors(bean: driverDetailsInstance, field: 'noOfYearAtCurrentLocation', 'error')} required">
	<label for="noOfYearAtCurrentLocation">
		<g:message code="driverDetails.noOfYearAtCurrentLocation.label" default="NumberofYearatCurrentLocation" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="noOfYearAtCurrentLocation" required="" value="${driverDetailsInstance?.noOfYearAtCurrentLocation}"/>
</div>


<div class="fieldcontain ${hasErrors(bean: driverDetailsInstance, field: 'remarks', 'error')} required">
	<label for="remarks">
		<g:message code="driverDetails.remarks.label" default="Remarks" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="remarks" required="" value="${driverDetailsInstance?.remarks}"/>
</div>
